#作业6  求100以内的素数
count = 1
print(2)
for i in range(3,100,2):
    for j in range(3,int(i ** 0.5) + 1,2):
        if i % j == 0:
            break
    else:
        count += 1
        print(i)
print(count)
